﻿<html>
<head>
<title>后代</title>
<style type="text/css">
  span{ 
        color:blue;
  }
  p{ 
        color:black;
  }
  p span{ 
        color:red;
  } 
  div p{ 
        color:#00ff00;
  } 
</style>
</head>
<body>
<span>蓝色</span>
<p><span>段落里的span 红色</span></p>
<p>黑色</p>
<div><p>绿色</p></div>
</body>
</html>